package com.spring.pojo;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
//组件
@Component
public class User {
    //相当于bean中的property这个属性
    public String name;
    @Value("lfc")
    public void setName(String name) {
        this.name = name;
    }
}
